package com.stars.empoly.activity

import android.os.Bundle
import com.stars.empoly.base.MBActivity
import com.stars.empoly.databinding.ActivityChatRoomBinding
import com.stars.empoly.vmodel.ChatRoomVModel


/**
 *on 2021/5/12
 */
class ChatRoomActivity: MBActivity<ChatRoomVModel, ActivityChatRoomBinding>() {


    var type:String?="1";//1货主发起聊天   "2"司机发起聊天
    override fun __before() {
        super.__before()
        type=intent?.extras?.getString("type")

    }


    override fun init(savedInstanceState: Bundle?) {
        super.init(savedInstanceState)


    }

    override fun listeners() {
        super.listeners()


    }



    override fun vmClass(): Class<ChatRoomVModel> {
        return ChatRoomVModel::class.java
    }
    override fun binding(): ActivityChatRoomBinding {
        return ActivityChatRoomBinding.inflate(layoutInflater)
    }

    override fun title(): String? {

        if(null!=type&&type.equals("1")){
            return "联系司机"
        }
        return "联系货主"
    }
}
